﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Invoicing.Model.Products;
using Invoicing.Command.Products;
using Utils;
namespace Invoicing.Logic.Products
{
    public class ProductLogic
    {
        public static ProductModel CreateNew(ProductModel model)
        {
            return ProductCommand.CreateNew(model);
        }

        public static void Update(ProductModel model)
        {
            ProductCommand.Update(model);
        }


        public static ProductModel GetModel(int id)
        {
            return ProductCommand.GetModel(id);
        }

        public static ProductCollection GetProducts(ProductQuery sea)
        {
            return ProductCommand.GetProducts(sea);
        }

        public static void Delete(int id)
        {
            ProductCommand.Delete(id);
        }
    }
}
